<template>
  <div>
    <button @click="sendMessage">发送消息给兄弟组件</button>
  </div>
</template>

<script>
import {emitter} from '../../../../common/event-bus.js';

export default {
  methods: {
    sendMessage() {
      emitter.emit('brother-msg', '来自组件A的消息');
    }
  }
};
</script>